<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"  name="viewport" />
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=8f254826172def5fe0bd0a25f18fd05b&sql=select+name+from+sy_site+where+siteid%3D1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select name from sy_site where siteid=1 LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
	<?php $sitename=$data[0]?>
	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    <title>
	<?php if($setting['meta_title']) { ?>
		<?php echo $setting['meta_title'];?><?php if($page>1) { ?> - 第 <?php echo $page;?> 页<?php } ?> - <?php echo $sitename['name'];?>
	<?php } else { ?>
		<?php if($id) { ?>
			<?php if($customtitle) { ?>
				<?php echo $customtitle;?>
			<?php } ?>
			<?php echo $title;?> - <?php echo $sitename['name'];?>
		<?php } elseif (isset($SEO['title']) && !empty($SEO['title'])) { ?>
			<?php echo $SEO['title'];?> - {$sitename['name']
		<?php } else { ?>
			<?php echo $SEO['site_title'];?>
		<?php } ?>
		<?php if($page>1) { ?> - 第 <?php echo $page;?> 页<?php } ?>
	<?php } ?>
	</title>
	<meta name="keywords" content="<?php if($seokey) { ?><?php echo $seokey;?><?php } else { ?><?php echo $SEO['keyword'];?><?php } ?>">
	<meta name="description" content="<?php if($seodescription) { ?><?php echo $seodescription;?><?php } else { ?><?php echo $SEO['description'];?><?php } ?>">
    <link href="<?php echo M_CSS;?>/common.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo M_CSS;?>/style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/statics/layui/css/layui.css">
    <script src="/statics/layui/layui.js"></script>
    <link href="<?php echo M_CSS;?>/animate.css" rel="stylesheet" type="text/css" />
    <SCRIPT type="text/javascript" src="<?php echo M_JS;?>/jquery-1.9.1.min.js"></SCRIPT>
    <SCRIPT type="text/javascript" src="<?php echo M_JS;?>/TouchSlide.1.1.js"></SCRIPT>
    <SCRIPT type="text/javascript" src="<?php echo M_JS;?>/jquery.SuperSlide.2.1.1.js"></SCRIPT>
    <SCRIPT type="text/javascript" src="<?php echo M_JS;?>/common.js"></SCRIPT>
    <script type="text/javascript" src="<?php echo M_JS;?>/tab.js"></script>
    <style>
        .layui-btn:hover{background-color: #d4141a!important;}
    </style>
    <script type="text/javascript">
        $(function(){
            var nav=$(".nav"); //得到导航对象
            var win=$(window); //得到窗口对象
            var sc=$(document);//得到document文档对象。
            win.scroll(function(){
                if(sc.scrollTop()>=250){
                    nav.addClass("fixednav");
                    $(".navTmp").fadeIn();
                }else{
                    nav.removeClass("fixednav");
                    $(".navTmp").fadeOut();
                }
            })
        })
    </script>
    <!--健康公益 js-->
    <script type="text/javascript">
        $(document).ready(function(){
            $(".imgtext").hide();
            $(".imgbox").hover(function(){
                $(".imgtext",this).slideToggle(500);
            });
        });
    </script>

    <!--评论 js-->

    <script type="text/javascript" src="<?php echo M_JS;?>/fun.js"></script>
    <script type="text/javascript" src="<?php echo M_JS;?>/ltMove.js"></script>
    <script type="text/javascript" src="<?php echo M_JS;?>/list.js"></script>
    <!--案例 js-->
    <script type="text/javascript" src="<?php echo M_JS;?>/MSClass.js"></script>

</head>

<body>

<!-- 联系方式-->
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=53e1e8367018186b1ff832eeb8d7665f&sql=select+%2A+from+sy_contact&num=1\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select * from sy_contact LIMIT 1");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
<?php $contact=$data[0];?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>


<div class="wrapper">
    <div class="header">
      <span style="float:left;color:#1584eb;width:49%;">
        <img src="<?php echo IMG_PATH;?>tem/logo.jpg" style="width: 98%;height:22px;float:left;margin-top: 24px;margin-bottom: 17px;" />
      </span>


        <span style="position: relative;float:right;margin-top: 20px;text-align: left;line-height: 15px;"><img src="<?php echo M_IMG;?>/phone.png" style="width: 30px;float:left;display: block;" /><a href="tel:<?php echo $contact['tel']?> " style="font-size: 18px;font-weight: 800;color:#2f82ff;line-height: 30px;padding-left: px;"><?php echo $contact['tel']?></a></span>

        <div style="clear:both;"></div>
    </div>
    <div class="banner" id="banner">
        <ul class="bd">
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=b41ca4f2c1cb2d4dd9caaed07a7b648f&sql=select+src%2Curl%2Ctitle+from+sy_banner+where+posid%3D0+order+by+listid+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select src,url,title from sy_banner where posid=0 order by listid ASC LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
            <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
            <li style="height:150px !important;"><img style="height:150px !important;" src="<?php echo $r['src'];?>"/></li>
            <?php $n++;}unset($n); ?>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </ul>
        <ul class="hd"></ul>
    </div>
    <div class="nav" style="height: 75px">
        <ul>
            <li class="" style="border-left: 1px solid #ccc;border-bottom: 1px solid #ccc;width: 24.55%">
                <a href="<?php echo siteurl($siteid);?>">网站首页</a>
            </li>
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=071bdf3aea7f637882ba96d7df089a52&action=category&catid=0&order=listorder+asc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'0','order'=>'listorder asc','limit'=>'20',));}?>
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
            <li class="" style="border-left: 1px solid #ccc;border-bottom: 1px solid #ccc;width: 24.55%"><a href="<?php echo $r['url'];?>"   title="<?php echo $r['catname'];?>"><?php echo $r['catname'];?></a></li>
            <?php $n++;}unset($n); ?>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
			<div style="clear:both;"></div>
        </ul>
    </div>